
import server from "@/utils/request";

export const getPcPlateContent = () => {
    return server({
        url: "/api/app/shundian/plateContent/getPcPlateContent",
    })
}

export const getPcGoodsCat = () => {
    return server({
        url: "/api/app/shundian/plateContent/getPcGoodsCat",
        method: "post"
    })
}

export const goodsDetail = (data) => {
    return server({
        url: "/api/app/happinesswebsite/goods/goodsDetail",
        method: "post",
        data,
        headers: {
            'Content-Type': "application/x-www-form-urlencoded"
        },
        arr: ['goodsId']
    })
}

export const goodsSpec = (data) => {
    return server({
        url: "/api/app/happinesswebsite/goods/goodsSpec",
        method: "post",
        data,
        headers: {
            'Content-Type': "application/x-www-form-urlencoded"
        },
        arr: ['goodsId']
    })
}

export const getValue=(data)=>{
    return server({
        url:"api/app/login/loginByMobileAndVerifyCode",
        method:"post",
        data,
        headers:{
            'Content-Type':"application/x-www-form-urlencoded"
        },
        arr: ['mobile', 'verificationCode', 'deviceToken', 'appType']
    })
}


export const getVerificationCode=(data)=>{
     return server({
        url:"/api/app/login/getVerificationCode",
        method:"post",
        data,
        headers:{
            'Content-Type':"application/x-www-form-urlencoded"
        },
        arr: ['mobile', 'type']
    })
}